<%--
  Class Name : EgovUnitCalc.jsp
  Description : 단위계산
  Modification Information
    
      수정일         수정자                   수정내용
    -------    --------    ---------------------------
     2010.06.25    장동한          최초 생성
 
    author   : 장동한
    since    : 2010.06.25
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" buffer="none"%>
<%@page import="egovframework.com.utl.fda.ucc.service.EgovUnitCalcUtil"  %>
<%@ taglib prefix="egovc" uri="/WEB-INF/tlds/egovc.tld" %>
<%

String sCmd = request.getParameter("cmd") == null ? "" : (String) request.getParameter("cmd");

double nResult=0.0;

try{
	if(!sCmd.equals("")){
		EgovUnitCalcUtil egovUnitCalcUtil= new EgovUnitCalcUtil();
		
		//길이
		if(sCmd.equals("Vt")){
			
			nResult = egovUnitCalcUtil.convertLengthCalcUnit(
												Double.valueOf(request.getParameter("txtVt")),
													(String)request.getParameter("selVt"),
												(String)request.getParameter("selVtAs"));
		//부피	
		}else if(sCmd.equals("Vl")){
			nResult = egovUnitCalcUtil.convertVolumeCalcUnit(
					Double.valueOf(request.getParameter("txtVl")),
						(String)request.getParameter("selVl"),
							(String)request.getParameter("selVlAs"));
		//넚이	
		}else if(sCmd.equals("Ar")){
			nResult = egovUnitCalcUtil.convertWidthCalcUnit(
					Double.valueOf(request.getParameter("txtAr")),
						(String)request.getParameter("selAr"),
							(String)request.getParameter("selArAs"));
		//무게	
		}else if(sCmd.equals("Wt")){
			nResult = egovUnitCalcUtil.convertWeightCalcUnit(
					Double.valueOf(request.getParameter("txtAr")),
						(String)request.getParameter("selAr"),
							(String)request.getParameter("selArAs"));	
		}
		
	
	}
}catch(Exception e){
	e.printStackTrace();
	
}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>단위계산</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="/js/egovframework/cmm/utl/EgovCmmUtl.js" ></script>
<link href="/css/egovframework/cmm/utl/com.css" rel="stylesheet" type="text/css">
<script type="text/javaScript" language="javascript">
//길이;
var ojbVt = new Array(
	Array(0,	"","vt0"),
	Array(1,	"센치미터","vt1"),
	Array(0.01,	"미터","vt2"),
	Array((1/2.54),	"인치(in)","vt3"),
	Array((1/30.48),	"피트(ft)","vt4"),
	Array((1/91.44),	"야드(yd)","vt5"),
	Array((1/160934.4),	"마일(mile)","vt6"),
	Array(0.033,	"자(尺)","vt7"),
	Array((0.033/6),	"간(間)","vt8"),
	Array((0.033/360),	"정(町)","vt9"),
	Array((0.033/1296),	"리(里)","vt10")
);

//부피
var ojbVl = new Array(
	Array(0,	"","v0"),
	Array((1/0.18039),	"홉","vl1"),
	Array((1/1.8039),	"되","vl2"),
	Array((1/18.039),	"말","vl3"),
	Array(1000,	"세제곱센티미터(cm³)","vl4"),
	Array(0.001,	"세제곱미터(m³)","vl5"),
	Array(1,	"리터(ℓ)","vl6"),
	Array((1000/16.387064),	"세제곱인치(in³)","vl7"),
	Array((1000/Math.pow(2.54*12,3)),	"세제곱피트(ft³)","vl8"),
	Array((1000/Math.pow(2.54*36,3)),	"세제곱야드(yd³)","vl9"),
	Array((1000/(Math.pow(2.54,3)*231)),	"갤런(gal)","vl10")
		
);

//넒이 
var ojbAr = new Array(
	Array(0,	"","ar0"),
	Array((1089/100), "평방자", "ar1"),
	Array((1089/3600), "평", "ar2"),
	Array((1089/1080000), "단보", "ar3"),
	Array((1089/10800000), "정보", "ar4"),
	Array(1, 	"제곱미터(m²)", "ar5"),
	Array(0.01, 		"아르(a)", "ar6"),
	Array((1/Math.pow(2.54*12/100,2)), "제곱피트(ft²)", "ar7"),
	Array((1/Math.pow(2.54*36/100,2)), "제곱야드(yd²)", "ar8"),
	Array((1/(Math.pow(2.54*36/100,2)*4840)), "에이커(ac)","ar9"),
	Array(0.0001, "헥 타아르(ha)", "ar10")
);
//무게
var ojbWt = new Array(
	Array(0,	"", "wt0"),
	Array(1, "그램(g)", "wt1"),
	Array(1000, "밀로그램(g)", "wt2"),
	Array(0.001, "킬로그램(kg)", "wt3"),
	Array(0.000001, "톤(t)", "wt4"),
	Array((1/0.06479891), "그레인(gr)", "wt5"),
	Array((16/453.59237), "온스(oz)", "wt6"),
	Array((1/453.59237), "파운드(lb)", "wt7"),
	Array((1/3.75), "돈", "wt8"),
	Array((1/37.5), "냥", "wt9"),
	Array((1/600), "근", "wt10"),
	Array((1/3750), "관", "wt11")

);
/* ********************************************************
 * 배열에서 환산 단위를 찾는다. 
 ******************************************************** */
function fnObjGetUnit(obj, objStr){
	
	for(var i=0; i < obj.length; i++){
		
		if(obj[i][2] == objStr){
			
			return obj[i][0];
		}
	}

	
}
/* ********************************************************
 * TAB처리 
 ******************************************************** */
function fnTabMenuSelect(objArr){

	var FLength = document.getElementsByName("tabMenu").length;
	
	
	for(var i=0; i < FLength; i++){
		if( i ==  objArr){
			document.getElementsByName("tabMenu")[i].style.backgroundColor = '#BBBBBB';
			document.getElementById("divUnit"+i).style.display = '';
		}else{
			document.getElementsByName("tabMenu")[i].style.backgroundColor = '#DDDDDD';
			document.getElementById("divUnit"+i).style.display = 'none';
		}
	}

}
/* ********************************************************
* 초기화함수 
******************************************************** */
function fnInit(){
	
<%
	//길이
	if(sCmd.equals("Vt")){
%>
		fnTabMenuSelect(0);
		fn_egov_SelectBox("selVt","<egovc:out value='<%=request.getParameter("selVt")%>'/>");
		fn_egov_SelectBox("selVtAs","<egovc:out value='<%=request.getParameter("selVtAs")%>'/>");
		document.getElementById("txtVt").value = "<egovc:out value='<%=request.getParameter("txtVt")%>'/>";
		document.getElementById("txtVtAs").value = resultFormat(<egovc:out value="<%=nResult%>"/>);
<%
	//부피
	}else if(sCmd.equals("Vl")){
%>
		fnTabMenuSelect(1);
		fn_egov_SelectBox("selVl","<egovc:out value='<%=request.getParameter("selVl")%>'/>");
		fn_egov_SelectBox("selVlAs","<egovc:out value='<%=request.getParameter("selVlAs")%>'/>");
		document.getElementById("txtVl").value = "<egovc:out value='<%=request.getParameter("txtVl")%>'/>";
		document.getElementById("txtVlAs").value = resultFormat(<egovc:out value="<%=nResult%>"/>);
<%
	//넓이
	}else if(sCmd.equals("Ar")){
%>
		fnTabMenuSelect(2);		
		fn_egov_SelectBox("selAr","<egovc:out value='<%=request.getParameter("selAr")%>'/>");
		fn_egov_SelectBox("selArAs","<egovc:out value='<%=request.getParameter("selArAs")%>'/>");
		document.getElementById("txtAr").value = "<egovc:out value='<%=request.getParameter("txtAr")%>'/>";
		document.getElementById("txtArAs").value = resultFormat(<egovc:out value="<%=nResult%>"/>);

<%
	//무게
	}else if(sCmd.equals("Wt")){
%>	
		fnTabMenuSelect(3);
		fn_egov_SelectBox("selWt","<egovc:out value='<%=request.getParameter("selWt")%>'/>");
		fn_egov_SelectBox("selWtAs","<egovc:out value='<%=request.getParameter("selWtAs")%>'/>");
		document.getElementById("txtWt").value = "<egovc:out value='<%=request.getParameter("txtWt")%>'/>";
		document.getElementById("txtWtAs").value = resultFormat(<egovc:out value="<%=nResult%>"/>);
<%
	}else{
%>
		fnTabMenuSelect(0);
	<%}%>
}

/* ********************************************************
 * 저장처리화면
 ******************************************************** */
function fn_egov_save_LogPattrn(){

	var varFrom = document.formLogPattrn;

	if(varFrom.txtLogPattrn.value == ""){
		alert("찾을로그 명(패턴)명을 입력해주세요!");
		varFrom.txtLogPattrn.focus();
		return;
	}

	if(varFrom.txtLogPattrnPath.value == ""){
		alert("로그파일경로명을 입력해주세요!");
		varFrom.txtLogPattrnPath.focus();
		return;
	}
	
	varFrom.onsubmit();
	
}

/* ********************************************************
* 길이 환산
******************************************************** */

function fn_egov_vt_UnitCalc(){

	if(document.getElementById("txtVt").value == ""){
		alert("길이를 입력 해 주세요!  ");
		document.getElementById("txtVt").focus();
		return;
	}

	var nSelVt = fnObjGetUnit(ojbVt ,fn_egov_SelectBoxValue("selVt") );

	var nSelVtAs = fnObjGetUnit(ojbVt ,fn_egov_SelectBoxValue("selVtAs") );

	var nTxtVt = Number(document.getElementById("txtVt").value);

	document.getElementById("txtVtAs").value = resultFormat( parseFloat(nSelVtAs)/parseFloat(nSelVt) * nTxtVt );
}

function fn_egov_vt_UnitCalcSubmit(gForm){

	if(document.getElementById("txtVt").value == ""){
		alert("길이를 입력 해 주세요!  ");
		document.getElementById("txtVt").focus();
		return;
	}
	
	gForm.submit();
}

/* ********************************************************
* 부피 환산
******************************************************** */
function fn_egov_vl_UnitCalc(){

	if(document.getElementById("txtVl").value == ""){
		alert("부피를 입력 해 주세요!  ");
		document.getElementById("txtVl").focus();
		return;
	}
	
	var nSelVl = fnObjGetUnit(ojbVl ,fn_egov_SelectBoxValue("selVl") );
	
	var nSelVlAs = fnObjGetUnit(ojbVl ,fn_egov_SelectBoxValue("selVlAs") );

	var nTxtVl= Number(document.getElementById("txtVl").value);
	
	document.getElementById("txtVlAs").value = resultFormat( parseFloat(nSelVlAs)/parseFloat(nSelVl) * nTxtVl );
}

function fn_egov_vl_UnitCalcSubmit(gForm){
	if(document.getElementById("txtVl").value == ""){
		alert("부피를 입력 해 주세요!  ");
		document.getElementById("txtVl").focus();
		return;
	}
	
	gForm.submit();
}
/* ********************************************************
* 넓이 환산
******************************************************** */
function fn_egov_ar_UnitCalc(){

	if(document.getElementById("txtAr").value == ""){
		alert("넓이를 입력 해 주세요!  ");
		document.getElementById("txtAr").focus();
		return;
	}
	
	var sSelArAsVal = fn_egov_SelectBoxValue("selArAs");
	
	var nSelAr = parseFloat( fnObjGetUnit(ojbAr ,fn_egov_SelectBoxValue("selAr")) );
	
	var nSelArAs = parseFloat( fnObjGetUnit(ojbAr ,sSelArAsVal) );
	
	var nTxtAr= parseFloat(document.getElementById("txtAr").value);

	//if(sSelArAsVal = "ar4")
	//	document.getElementById("txtArAs").value = parseFloat( (nSelArAs/nSelAr) * nTxtAr );
	//else
		document.getElementById("txtArAs").value = resultFormat( (nSelArAs/nSelAr) * nTxtAr );
}


function fn_egov_ar_UnitCalcSubmit(gForm){
	if(document.getElementById("txtAr").value == ""){
		alert("넓이를 입력 해 주세요!  ");
		document.getElementById("txtAr").focus();
		return;
	}
	
	gForm.submit();
}

/* ********************************************************
* 무게 환산
******************************************************** */
function fn_egov_wt_UnitCalc(){

	if(document.getElementById("txtWt").value == ""){
		alert("무게를 입력 해 주세요!  ");
		document.getElementById("txtWt").focus();
		return;
	}
	
	var nSelWt = fnObjGetUnit(ojbWt ,fn_egov_SelectBoxValue("selWt") );
	
	var nSelWtAs = fnObjGetUnit(ojbWt ,fn_egov_SelectBoxValue("selWtAs") );

	var nTxtWt= Number(document.getElementById("txtWt").value);
	
	document.getElementById("txtWtAs").value = resultFormat( parseFloat(nSelWtAs)/parseFloat(nSelWt) * nTxtWt );
}
function fn_egov_wt_UnitCalcSubmit(gForm){
	if(document.getElementById("txtWt").value == ""){
		alert("무게를 입력 해 주세요!  ");
		document.getElementById("txtWt").focus();
		return;
	}
	
	gForm.submit();
}

/* ********************************************************
* SELECT BOX VALUE FUNCTION
******************************************************** */
function fn_egov_SelectBoxValue(sbName)
{
	var FValue = "";
	for(var i=0; i < document.getElementById(sbName).length; i++)
	{
		if(document.getElementById(sbName).options[i].selected == true){
			
			FValue=document.getElementById(sbName).options[i].value;
		}
	}
	
	return  FValue;
}

function fn_egov_SelectBox(sbName, sbValue)
{
	for(var i=0; i < document.getElementById(sbName).length; i++)
	{
	
		if(document.getElementById(sbName).options[i].value == sbValue){
			
			document.getElementById(sbName).options[i].selected = true;
		}
	}
}

function resultFormat(result)
{
	var strResult = result.toString();
	var pointIdx = strResult.indexOf("."); 
	var num = strResult.substring(0, pointIdx);
	var fl = strResult.substring(pointIdx + 1);
	var eIdx = strResult.indexOf("e");

	var i ;

	if (num == "") { 
		num = strResult;
	}

	if (eIdx < 0) {
		if (num.length > 9 ) {
			result = parseFloat((result / Math.pow(10, num.length -1)).toFixed(4)) + "e+" + (num.length -1);
		}  else if (num  == "0") {
			for (i = 0; i < fl.length ; i ++) {
				if(fl[i] != "0")  break;	
			}
			if( i < 5 ) { 
				result = parseFloat(result.toFixed(6));
			}else if( i < 6 ) { 
				result = parseFloat(result.toFixed(7));
			}else{
				result = (result * Math.pow(10, i + 1)).toFixed(4); 
				result = parseFloat(result) + "e-" + (i + 1);	
				
			}
		} else if (num != "0" && (num.length + fl.length > 9)) {

			if(num.length > 3) result = result.toFixed(6 - ( num.length  - 3));
			else result = result.toFixed(6);
			result = parseFloat(result);	
		} 
		
	}
	else {
		
		var eFront =  strResult.substring(0, eIdx);
		var eBack =  strResult.substring(eIdx);
		var eFl    = strResult.substring(pointIdx + 1, eIdx);
		if(eFl.length > 5){
			result = parseFloat(parseFloat(eFront).toFixed(4));
			result = result + eBack;	
		}
	}

	return result;
}

</script>
<style type="text/css">
.btnNew {
border : 0 solid #000;
color : #000000;
background-image : url(/images/egovframework/cmm/uss/umt/button/bu2_bg.gif);
cursor : pointer;
}

h1 {font-size:12px;}
caption {visibility:hidden; font-size:0; height:0; margin:0; padding:0; line-height:0;}
</style>
</head>
<body onLoad="fnInit();">
<DIV id="content" style="width:712px">
<!-- noscript 테그 -->
<noscript class="noScriptTitle">자바스크립트를 지원하지 않는 브라우저에서는 일부 기능을 사용하실 수 없습니다.</noscript>

<!-- 상단 타이틀  영역 -->
<div class="title_left" style="width:100%;margin:0 0 0 0;">
	<h1><img src="/images/egovframework/cmm/uss/umt/icon/tit_icon.gif" width="16" height="16" hspace="3" style="vertical-align:middle; display:inline-block;" alt=" ">&nbsp;단위계산</h1>
</div>

<!--  줄간격조정  -->
<div style="width:100%;border:solid 0px #000000;height:3px"></div>

<!--  상단  등롬폼 영역 START -->
<table border="0" cellspacing="0" cellpadding="0" summary="길이/넓이/부피/무게  탭을 제공한다">
<caption>길이/넓이/부피/무게  탭을 제공한다</caption>
<tr> 
  <td height="20px" width="100px" style="cursor:hand;cursor:pointer;" align="center"><input type="button" name="tabMenu" onClick="fnTabMenuSelect(0);" value="길이" style="width:100px;height:22px;border:thin;font-weight:bold"></td>
  <td height="20px" width="1x" bgcolor="#FFFFFF"></td>
  <td height="20px" width="110px" style="cursor:hand;cursor:pointer;" align="center"><input type="button" name="tabMenu" onClick="fnTabMenuSelect(1);" value="부피" style="width:110px;height:22px;border:thin;font-weight:bold"></td>
  <td height="20px" width="1x" bgcolor="#FFFFFF" ></td>
  <td height="20px" width="100px" style="cursor:hand;cursor:pointer;" align="center"><input type="button" name="tabMenu" onClick="fnTabMenuSelect(2);" value="넓이" style="width:100px;height:22px;border:thin;font-weight:bold"></td>
  <td height="20px" width="1x" bgcolor="#FFFFFF"></td>
  <td height="20px" width="110px" style="cursor:hand;cursor:pointer;" align="center"><input type="button" name="tabMenu" onClick="fnTabMenuSelect(3);" value="무게" style="width:110px;height:22px;border:thin;font-weight:bold"></td>
  <td height="20px" width="1x" bgcolor="#FFFFFF"></td>
  <th scope="col">&nbsp;</th>
</tr>
</table>
<!--  줄간격조정  -->
<div style="width:100%;border:solid 0px #000000;height:3px"></div>

<!-- 길이 DIV  -->
<DIV id="divUnit0" style="position:relative;border:0px;display:none;">
<form name="formUnit" action="/EgovPageLink.do?link=cmm/utl/EgovUnitCalc" method="post">
<table border="0" cellpadding="0" cellspacing="1" class="table-register" summary="길이 단위환산을  제공한다.">
<caption>길이 단위환산을  제공한다</caption>
<tr> 
	<td width="98px" align="center">
		<input name="txtVt" id="txtVt" title="길이" type="text" size="10" value="" maxlength="10" style="width:90%">  
	</td>
	<td width="110px" align="center">
		<select id="selVt" name="selVt" title="길이선택" class="select"  style="width:90%">
		<option value="vt1">센티미터(cm)</option>
		<option value="vt2">미터(mm)</option>
		<option value="vt3">인치(in)</option>
		<option value="vt4">피트(ft)</option>
		<option value="vt5">야드(yd)</option>
		<option value="vt6">마일(mile)</option>
		<option value="vt7">자(尺)</option>
		<option value="vt8">간(間)</option>
		<option value="vt9">정(町)</option>
		<option value="vt10">리(里)</option>
		</select>
	</td>
	<td width="7px" align="center">=</td>
	<td width="98px" align="center">
		<input name="txtVtAs" id="txtVtAs" title="길이환산" type="text" size="10" value="" maxlength="10" style="width:90%" readonly>   
	</td>
	<td width="110px" align="center">
		<select id="selVtAs" name="selVtAs" title="환산단위선택" class="select" style="width:90%"> 
		<option value="vt1">센티미터(cm)</option>
		<option value="vt2">미터(mm)</option>
		<option value="vt3">인치(in)</option>
		<option value="vt4">피트(ft)</option>
		<option value="vt5">야드(yd)</option>
		<option value="vt6">마일(mile)</option>
		<option value="vt7">자(尺)</option>
		<option value="vt8">간(間)</option>
		<option value="vt9">정(町)</option>
		<option value="vt10">리(里)</option>
		</select>
	</td>
</tr>
<tr>
	<td height="80" width="40px" colspan="5">
	<center>
		<table border="0" cellspacing="0" cellpadding="0" align="center" summary="변환버튼을  제공한다.">
		<caption>변환버튼을  제공한다</caption>
		<tr>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_left.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  <td style="padding:0 0 0 0;" class="btnBackground"><input type="button" value="변환" name="btnSearch" onclick="fn_egov_vt_UnitCalc(); return false;" class="btnNew" style="height:20px;width:26px;"></td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_right.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  <th scope="col">&nbsp;</th>
		  <!-- 
		  <td>&nbsp;</td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_left.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  <td style="padding:0 0 0 0;" class="btnBackground"><input type="submit" value="변환" name="btnSearch" onclick="fn_egov_vt_UnitCalcSubmit(this.form); return false;" class="btnNew" style="height:20px;width:26px;"></td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_right.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		   -->      
		</tr>
		</table>   
	</center>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
	</td>
</tr>
<tr><th scope="colgroup" colspan="5"> </th><tr>
</table>
<input type="hidden" name="cmd" value="Vt">
<div style="visibility:hidden;display:none;"><input name="iptSubmit" type="submit" value="전송" title="전송"></div>
</form>
</DIV>
<!-- 부피 DIV  -->
<DIV id="divUnit1" style="position:relative;border:0px;display:none;">
<form name="formVl" action="/EgovPageLink.do?link=cmm/utl/EgovUnitCalc" method="post">
<table border="0" cellpadding="0" cellspacing="1" class="table-register" summary="부피 단위환산을 제공한다.">
<caption>부피 단위환산을  제공한다</caption>
<tr> 
	<td width="68px" align="center">
		<input name="txtVl" id="txtVl" title="부피" type="text" size="10" value="" maxlength="10" style="width:90%">  
	</td>
	<td width="140px" align="center">
		<select id="selVl" name="selVl" title="부피선택" class="select"  style="width:90%">
		<option value="vl1">홉</option>
		<option value="vl2">되</option>
		<option value="vl3">말</option>
		<option value="vl4">세제곱센티미터(cm³)</option>
		<option value="vl5">세제곱미터(m³)</option>
		<option value="vl6">리터(1L)</option>
		<option value="vl7">세제곱인치(in³)</option>
		<option value="vl8">세제곱피트(ft³)</option>
		<option value="vl9">세제곱야드(yd³)</option>
		<option value="vl10">갤런(gal)</option>
		</select>
	</td>
	<td width="7px" align="center">=</td>
	<td width="68px" align="center">
		<input name="txtVlAs" id="txtVlAs" title="부피환산" type="text" size="10" value="" maxlength="10" style="width:90%" readonly>   
	</td>
	<td width="140px" align="center">
		<select id="selVlAs" name="selVlAs" title="부피환산단위선택" class="select" style="width:90%"> 
		<option value="vl1">홉</option>
		<option value="vl2">되</option>
		<option value="vl3">말</option>
		<option value="vl4">세제곱센티미터(cm³)</option>
		<option value="vl5">세제곱미터(m³)</option>
		<option value="vl6">리터(1L)</option>
		<option value="vl7">세제곱인치(in³)</option>
		<option value="vl8">세제곱피트(ft³)</option>
		<option value="vl9">세제곱야드(yd³)</option>
		<option value="vl10">갤런(gal)</option>
		</select>
	</td>
</tr>
<tr>
	<td height="80" width="40px" colspan="5">
	<center>
		<table border="0" cellspacing="0" cellpadding="0" align="center" summary="변환버튼을  제공한다.">
		<caption>변환버튼을  제공한다</caption>
		<tr>       
		  <td>&nbsp;</td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_left.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  <td style="padding:0 0 0 0;" class="btnBackground"><input type="button" value="변환" name="btnSearch" onclick="fn_egov_vl_UnitCalc(); return false;" class="btnNew" style="height:20px;width:26px;"></td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_right.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  <th scope="col">&nbsp;</th>
		  <!--      
		  <td>&nbsp;</td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_left.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  <td style="padding:0 0 0 0;" class="btnBackground"><input type="submit" value="변환" name="btnSearch" onclick="fn_egov_vl_UnitCalcSubmit(this.form); return false;" class="btnNew" style="height:20px;width:26px;"></td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_right.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  -->      
		</tr>
		</table>   
	</center>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
	</td>
</tr>
<tr><th scope="colgroup" colspan="5"> </th><tr>
</table>
<input type="hidden" name="cmd" value="Vl">
<div style="visibility:hidden;display:none;"><input name="iptSubmit" type="submit" value="전송" title="전송"></div>
</form>
</DIV>
<!-- 넓이 DIV  -->
<DIV id="divUnit2" style="position:relative;border:0px;display:none;">
<form name="formAr" action="/EgovPageLink.do?link=cmm/utl/EgovUnitCalc" method="post">
<table border="0" cellpadding="0" cellspacing="1" class="table-register" summary="넓이 단위환산을  제공한다.">
<caption>넓이 단위환산을  제공한다</caption>
<tr> 
	<td width="98px" align="center">
		<input name="txtAr" id="txtAr" title="넓이" type="text" size="10" value="" maxlength="10" style="width:90%">  
	</td>
	<td width="110px" align="center">
		<select id="selAr" name="selAr" title="넓이선택" class="select"  style="width:90%">
		<option value="ar1">평방자</option>
		<option value="ar2">평</option>
		<option value="ar3">단보</option>
		<option value="ar4">정보</option>
		<option value="ar5">제곱미터(m²)</option>
		<option value="ar6">아르(a)</option>
		<option value="ar7">제곱피트(ft²)</option>
		<option value="ar8">제곱야드(yd²)</option>
		<option value="ar9">에이커(ac)</option>
		<option value="ar9">헥타아르(ha)</option>
		</select>
	</td>
	<td width="7px" align="center">=</td>
	<td width="98px" align="center">
		<input name="txtArAs" id="txtArAs" title="넓이환산" type="text" size="10" value="" maxlength="10" style="width:90%" readonly>   
	</td>
	<td width="110px" align="center">
		<select id="selArAs" name="selArAs" title="넓이환산단위선택" class="select" style="width:90%"> 
		<option value="ar1">평방자</option>
		<option value="ar2">평</option>
		<option value="ar3">단보</option>
		<option value="ar4">정보</option>
		<option value="ar5">제곱미터(m²)</option>
		<option value="ar6">아르(a)</option>
		<option value="ar7">제곱피트(ft²)</option>
		<option value="ar8">제곱야드(yd²)</option>
		<option value="ar9">에이커(ac)</option>
		<option value="ar9">헥타아르(ha)</option>
		</select>
	</td>
</tr>
<tr>
	<td height="80" width="40px" colspan="5">
	<center>
		<table border="0" cellspacing="0" cellpadding="0" align="center" summary="변환버튼을  제공한다.">
		<caption>변환버튼을  제공한다</caption>
		<tr>       
		  <td>&nbsp;</td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_left.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  <td style="padding:0 0 0 0;" class="btnBackground"><input type="button" value="변환" name="btnSearch" onclick="fn_egov_ar_UnitCalc(); return false;" class="btnNew" style="height:20px;width:26px;"></td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_right.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  <th scope="col">&nbsp;</th>
		  <!--      
		  <td>&nbsp;</td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_left.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  <td style="padding:0 0 0 0;" class="btnBackground"><input type="submit" value="변환" name="btnSearch" onclick="fn_egov_ar_UnitCalcSubmit(this.form); return false;" class="btnNew" style="height:20px;width:26px;"></td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_right.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  -->      
		</tr>
		</table>   
	</center>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
	</td>
</tr>
<tr><th scope="colgroup" colspan="5"> </th><tr>
</table>
<input type="hidden" name="cmd" value="Ar">
<div style="visibility:hidden;display:none;"><input name="iptSubmit" type="submit" value="전송" title="전송"></div>
</form>
</DIV>
<!-- 무게 DIV  -->
<DIV id="divUnit3" style="position:relative;border:0px;display:none;">
<form name="formUnit" action="/EgovPageLink.do?link=cmm/utl/EgovUnitCalc" method="post">
<table border="0" cellpadding="0" cellspacing="1" class="table-register" summary="무게 단위환산을  제공한다.">
<caption>무게 단위환산을  제공한다</caption>
<tr> 
	<td width="98px" align="center">
		<input name="txtWt" id="txtWt" type="text" title="무게" size="10" value="" maxlength="10" style="width:90%">  
	</td>
	<td width="110px" align="center">
		<select id="selWt" name="selWt" title="무게단위선택" class="select"  style="width:90%">
		<option value="wt1">그램(g)</option>
		<option value="wt2">밀로그램(g)</option>
		<option value="wt3">킬로그램(kg)</option>
		<option value="wt4">톤(t)</option>
		<option value="wt5">그레인(gr)</option>
		<option value="wt6">온스(oz)</option>
		<option value="wt7">파운드(lb)</option>
		<option value="wt8">돈</option>
		<option value="wt9">냥</option>
		<option value="wt10">근</option>
		<option value="wt11">관</option>
		</select>
	</td>
	<td width="7px" align="center">=</td>
	<td width="98px" align="center">
		<input name="txtWtAs" id="txtWtAs" title="무게환산" type="text" size="10" value="" maxlength="10" style="width:90%" readonly>   
	</td>
	<td width="110px" align="center">
		<select id="selWtAs" name="selWtAs" title="무게환산단위선택" class="select" style="width:90%"> 
		<option value="wt1">그램(g)</option>
		<option value="wt2">밀로그램(g)</option>
		<option value="wt3">킬로그램(kg)</option>
		<option value="wt4">톤(t)</option>
		<option value="wt5">그레인(gr)</option>
		<option value="wt6">온스(oz)</option>
		<option value="wt7">파운드(lb)</option>
		<option value="wt8">돈</option>
		<option value="wt9">냥</option>
		<option value="wt10">근</option>
		<option value="wt11">관</option>
		</select>
	</td>
</tr>
<tr>
	<td height="80" width="40px" colspan="5">
	<center>
		<table border="0" cellspacing="0" cellpadding="0" align="center" summary="변환버튼을  제공한다.">
		<caption>변환버튼을  제공한다</caption>
		<tr>       
		  <td>&nbsp;</td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_left.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  <td style="padding:0 0 0 0;" class="btnBackground"><input type="button" value="변환" name="btnSearch" onclick="fn_egov_wt_UnitCalc(); return false;" class="btnNew" style="height:20px;width:26px;"></td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_right.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  <th scope="col">&nbsp;</th>
		  <!--       
		  <td>&nbsp;</td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_left.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		  <td style="padding:0 0 0 0;" class="btnBackground"><input type="submit" value="변환" name="btnSearch" onclick="fn_egov_Wt_UnitCalcSubmit(this.form); return false;" class="btnNew" style="height:20px;width:26px;"></td>
		  <td style="padding:0 0 0 0;"><img src="/images/egovframework/cmm/uss/umt/button/bu2_right.gif" alt="버튼이미지" title="버튼이미지" width="8" height="20"></td>
		   -->      
		</tr>
		</table>   
	</center>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
	</td>
</tr>
<tr><th scope="colgroup" colspan="5"> </th><tr>
</table>
<input type="hidden" name="cmd" value="Wt">
<div style="visibility:hidden;display:none;"><input name="iptSubmit" type="submit" value="전송" title="전송"></div>
</form>
</DIV>

<!--  상단  등롬폼 역영 End -->

<!--  줄간격조정  -->
<div style="width:100%;border:solid 0px #000000;height:3px"></div>

</DIV>
</body>
</html>